import 'package:fish_redux/fish_redux.dart';

import 'route_action.dart';
import 'route_state.dart';

Reducer<RouteState> buildReducer() {
  return asReducer(
    <Object, Reducer<RouteState>>{
      RouteAction.action: _onAction,
    },
  );
}

RouteState _onAction(RouteState state, Action action) {
  final RouteState newState = state.clone();
  return newState;
}
